package com.sso.oauth2.server.contorller;

import com.sso.oauth2.server.pojo.BaseResp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.security.oauth2.provider.endpoint.CheckTokenEndpoint;
import org.springframework.security.oauth2.provider.endpoint.TokenKeyEndpoint;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.security.Principal;
import java.util.Map;

/**
 * OAuth 2.0
 *
 * @author yins
 * @date 2021/07/12 15:53
 **/
@Controller
public class TokenController {

    @RequestMapping("/oauth2.0/login")
    public String login(@RequestBody(required = false) Map<String, String> paramMap) {
        /**
         * 1.authorize code
         * 2.password
         * 3.client
         */
        return "login";
    }
}
